<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="java.util.*, board.model.*" %>    
<%
List list = (List)request.getAttribute("list");
%>    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
	<link rel="stylesheet" href="<%=request.getContextPath() %>/common/client/css/style.css" />
</head>
<body>
<table style="width:400px;">
	<colgroup>
		<col width="70px;">
		<col width="*">
		<col width="100px;">
	</colgroup>
	<thead>
		<tr>
			<th>글번호</th>
			<th>제목</th>
			<th>파일</th>
		</tr>
	</thead>
<% 

	int list_size =0;
	if(list != null)
	{
		out.print("<tbody>");
		BoardVo boardVo = null;
		for(int i=0; i< list.size(); i++){
			boardVo = (BoardVo)list.get(i);
	
%>	
			
				<tr>
					<td><%=boardVo.getSeq() %></td>
					<td><%=boardVo.getTitle() %></td>
					<td><%=boardVo.getContent()%></td>
				</tr>
<%
				list_size++;
		}// end for
		out.print("</tbody>");
	}//end if
%>	
	<tfoot>
		<td colspan="3" align="right"> 전체 <%=list_size %> 건</td>
	</tfoot>
	
</table>
</body>
</html>